package com.example.webdemo.service.impl;

import com.example.webdemo.dao.HomeImageMapper;
import com.example.webdemo.model.HomeImage;
import com.example.webdemo.service.HomeImageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zp
 * @version 1.0
 * @description: HomeImageServiceImpl
 * @date 2023/7/31 19:13
 */
@Service
public class HomeImageServiceImpl implements HomeImageService {
    @Resource
    private HomeImageMapper homeImageMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return homeImageMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HomeImage record) {
        return homeImageMapper.insert(record);
    }

    @Override
    public int insertSelective(HomeImage record) {
        return homeImageMapper.insertSelective(record);
    }

    @Override
    public HomeImage selectByPrimaryKey(Integer id) {
        return homeImageMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HomeImage record) {
        return homeImageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HomeImage record) {
        return homeImageMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HomeImage> selectAll() {
        return homeImageMapper.selectAll();
    }
}
